def debug_string(*arg):
    """
    redirect string to local file
    """
    f = open('g:\debug.txt', 'a+')
    for item in arg:
        f.write(item + '\n')
    f.close()